﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Tours.aspx.vb" Inherits="MyProject.WebForm5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="AccessDataSource1">
        <Columns>
            <asp:BoundField DataField="ItemName" HeaderText="ItemName" 
                SortExpression="ItemName" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="File" HeaderText="File" SortExpression="File" />
        </Columns>
    </asp:GridView>
    <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
        DataFile="~/App_Data/AssignmentDB.accdb" 
        SelectCommand="SELECT [ItemName], [Description], [File] FROM [Item] WHERE ([Category] = ?)">
        <SelectParameters>
            <asp:Parameter DefaultValue="Tours and Services" Name="Category" 
                Type="String" />
        </SelectParameters>
    </asp:AccessDataSource>
</asp:Content>
